package com.gmt.service.impl;

import com.gmt.mapper.UserMapper;
import com.gmt.pojo.User;
import com.gmt.service.IUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author John.zhang
 * @version Id: UserServiceImpl, v 1.0 2020/11/12 15:24 ZhiYong Exp $
 */
@Service
public class UserServiceImpl implements IUserService {

    @Resource
    private UserMapper userMapper;


    @Override
    public List<User> query(User user) {
        return userMapper.query(user);
    }

    @Override
    public User queryById(Integer id) {
        return userMapper.queryById(id);
    }
}
